package com.shop.cereshop.commons.domain.agentProduct;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 后台商品规格信息表实体类
 */
@Data
@TableName("cere_agent_product_sku")
public class CereAgentProductSku {

    @TableId(value = "sku_id", type = IdType.AUTO)
    private Long skuId;

    @ApiModelProperty(value = "关联商品id")
    private Long agentProductId;

    @ApiModelProperty(value = "SKU")
    private String sku;

    @ApiModelProperty(value = "售价")
    private BigDecimal price;

    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "库存数量")
    private Integer stockNumber;

    @ApiModelProperty(value = "库存总数")
    private Integer totalStock;

    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "规格图片地址")
    private String skuImage;

    @ApiModelProperty(value = "款式 0-单款式 1-多款式")
    private Integer style;

    @ApiModelProperty(value = "是否默认规格 0-否 1-是")
    private Integer ifDefault;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
